<? echo "Found ".$this->hits->getTotalItemCount()." result "; ?>
<?php foreach ($this->hits as $hit) {
 ?>
<table cellpadding="0">
        <tr><td rowspan="2" valign="top"><img src="<?php echo $this->baseUrl() ?>/product_images/<?= $hit->image ?>"  width="80" height="80"/></td>
            <td>
                <a href="<?php echo $this->baseUrl() ?>/index/show?url=<?= $hit->url ?>">
                    <?= $hit->name ?> (score: <?= $hit->score ?>)
                </a>
            </td>
        </tr>
        <tr><td valign="top"><?= $hit->contents ?></td></tr>
    </table>

<?php } ?>
<?php
echo $this->paginationControl($this->hits,
        'Sliding',
        'partials/pagination-control.phtml');
?>
